<html>
    <head>
        <title>成绩单</title>
        <style>
            table {
                border-collapse: collapse;
            }
            table,
            th,
            td {
                border: 1px solid black;
                min-width: 5em;
            }
        </style>
    </head>
    <body>
        <table>
            <tr>
                <th>姓名</th>
                <th>课程</th>
                <th>成绩</th>
            </tr>
            {% for item in items %}
            <tr>
                <td>{{ item.stu_name }}</td>
                <td>{{ item.course_name }}</td>
                <td>{{ item.grade }}</td>
            </tr>
            {% endfor %}
        </table>
    </body>
</html>
